package com.tbit.uqbike.service.business.brand.config;

import com.tbit.uqbike.object.pojo.BrandRemoteConfig;

/**
 * BrandRemoteConfig 业务校验抽象类
 * 提供模板
 *
 *
 * @author <a href="mailto:chen.chaoxiong@tbit.com.cn">ChenChaoXiong</a>
 * @since 2024/5/9
 */
public abstract class AbstractConfigValidator implements ConfigValidator{

    protected abstract boolean support(BrandRemoteConfig brandRemoteConfig);

    public void valid(BrandRemoteConfig brandRemoteConfig) {
        if (support(brandRemoteConfig)) {
            doValid(brandRemoteConfig);
        }
    }
}
